<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="Or-Role" content="buy">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>购买评价 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/plupload.js"></script><script language="javascript" src="/static/thinkct/js/upload.js"></script></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"}
<div class="uright">
<div class="mwz"><li class="cur">交易评价</li>
<li class="prompt r">交易商品：<a href="{$data.url}"  target="_blank">[{:typename($order.type)}]{$order.tit}</a>&nbsp;&nbsp;订单号：<a href="/member/emyorder/{$order.ddbh}"  target="_blank">{$order.ddbh}</a></li>
</div>
<form class="layui-form layui-font14"  name="" action="">
<div class="layui-form-item blines"><div class="layui-inline">{$con_rev.buy}</div>{$order_evaluation.buy}</div>
<div class="layui-form-item blines"><div class="layui-inline">{$con_rev.sell}</div>{$order_evaluation.sell}</div>
{if($reviews.zjcom != null)}
<div class='layui-form-item blines'><div class='layui-inline'><label class="layui-form-label"><font color="{$color.buy}">{$name.buy}追加</font></label><div class='layui-input-block'><div class='layui-form-mid'>{$reviews.zjcom}<p class='gray f12'>{:ifsj($reviews.zjtime)}</p></div></div></div></div>{/if}
{if($ok[$Role['my']]!='ok')}
<div class="layui-form-item">
    <label class="layui-form-label">您的评价</label>
    <div class="layui-inline">
 <input type="radio" name="imp" value="0" lay-filter="eval" checked data='<font class="red">好评 +2分</font><p style="font-size:12px">亲，好评无法修改哦，请验货后再对商品和购物感受做出真实、客观、仔细地评价。</p>' title="<i class='ico-good' style='margin:0 0 0 -3px;' id='eval'></i>"/>
 <input type="radio" name="imp" value="1" lay-filter="eval" data='<font class="yellow">中评 不加分</font><p style="font-size:12px">咳咳，您给卖家打了中评，需要说明原因哦。</p>' title="<i class='ico-normal' style='margin:-2px 0 0 -3px;' id='eval'></i>"/>
 <input type="radio" name="imp" value="2" lay-filter="eval" data='<font class="black">差评 -1分</font><p style="font-size:12px">亲，建议您不要打差评，如有不满，可先联系卖家协商或联系管理申诉维权后再做决定。</p>' title="<i class='ico-bad' style='margin:0 0 0 -3px;' id='eval'></i>"/>
 <br /><div class='eval_tips gray' style='line-height:22px;'><font class="red">好评 +2分</font> <p style='font-size:12px'>亲，好评无法修改哦，请验货后再对商品和购物感受做出真实、客观、仔细地评价。</p></div>
</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">评价内容</label>
    <div class="layui-input-block">
<div class="upload-box" style='float:left;width:94%;'>
<p class='eva_txt'>
<textarea name="txt" class="layui-textarea checkLen" style="height:100px;width:96%;margin:10px 2% 0 2%" d_len="500" lay-verify="evareason" placeholder="可以在此分享一下本次交易的感受或评价的原因！"></textarea>
<span>您还可以输入<em id="check_count">500</em>字</span>
</p>
	<div class="container">
				<div class="statusBar">
				<div class="info" style=line-height:36px><b>1.</b>图片非必传！限上传5个,单个大小上限2M,支持格式：jpg,png,gif</div>
					<div class="btns">
					<a id="browses">选择图片</a>
					</div>
				</div>
<table  class="fu_list" id='pluing' style="display:none;" >
            <thead>
              <tr>
                <td width="64%">待传队列（<u>0</u>）</td>
				<td width="22%" align="center"></td>
                <td width="14%" align="center">操作</td>
              </tr>
            </thead>
            <tbody id="FileListing">
            </tbody>
          </table>
	</div>
</div>
</div>
</div>
{include file="evaluation/pingfen"}
<div class="layui-form-item" style='padding-bottom:15px;'>
    <label class="layui-form-label"></label>
    <div class="layui-input-inline"><input type="submit" lay-submit='' class="layui-btn lay-submit"  value="确认评价" /></div>
</div>
<input type="hidden" name="bh" value="{$ddbh}">
<input type="hidden" name="role" value="{$Role.my}">
<input type="hidden" name="action" value="first">
<input type="hidden" name="passkey" value="{:passkey()}">
{/if}
{if(!empty($caozuo))}
<div class="layui-form-item" style="padding-bottom:15px;">
	<label class="layui-form-label"></label>
	<div class="layui-input-inline">{$caozuo}</div>
</div>{/if}
	<div class='notes'>
	<li> <h3>注意事项：</h3></li>
<li><b>1.</b>评价需具有真实、客观性；评价将是其他会员的参考，也将影响对方的信誉值；</li>
<li><b>2.</b>对于无任何实质性证据的恶意评价（诽谤），经对方举报查证后，予以撤销评价（无效），不可再对本交易评价；</li>
<li><b>3.</b>买家首评7天内可追加及修改评价（好评无法修改）；卖家可在买家首评及追评7天内分别给予回复；</li>
<li><b>4.</b><font color='red'>评价出现任何脏话、骂人等词语，系统将自动屏蔽，同时不排除予以撤销评价（无效），并不可再对本交易评价；</font></li>
<li><b>5.</b><font color='blue'>手动评价可获得10积分奖励；交易完成3天后仍未予以评价，系统将自动好评（无积分奖励）！</font></li>

	</div>

{if($evaluation_log)}	
<table class="tablelist">
	<thead>
		<tr>
		<td width="20%">时间</td>
		<td width="10%" class='tcer'>操作人</td>
		<td width="70%">操作详情</td>
		</tr>
	</thead>
	<tbody>
	{foreach($evaluation_log as $v)}
	<tr><td>{:ifsj($v.sj)}</td><td class='tcer'>{:ifrole($v.role)}</td><td>{$v.txt}</td></tr>
	{/foreach}</tbody>
</table>
{/if}

   </div>	
</form>

 </div>
 </div>
{include file="bottom"}<script type="text/javascript">
layui.use(['form','layer'],function(){var form=layui.form(),layer=layui.layer;form.verify({evareason:function(value){if($("input[name=imp]:checked").val()!=0&&value.length<10)return'非好评必须要说明原因哦！（不少于10个字）'}});form.on('submit',function(data){layer.load();dform(data.field,'evaluation',function(datas){if(datas.state<0&&uploaders.total.queued>0){Rsdata=datas;progress();$('#progress-upload').html(uploaders.total.queued);uploaders.start()}else{Rs(datas)}});return false});form.on('radio(eval)',function(data){ $(".eval_tips").html($(data.elem).attr("data"))});layer.photos({photos:'.eva_img',shift:5})});var maxnum=5,stop=1000,Rsdata;uploaders=new plupload.Uploader({runtimes:'html5,flash,silverlight,html4',browse_button:'browses',url:"/upload/",resize:{width:900},max_retries:1,flash_swf_url:'/check/Moxie.swf',silverlight_xap_url:'/check/Moxie.xap',filters:{prevent_duplicates:true,max_file_size:'2mb',mime_types:[{title:"选择图片",extensions:'jpg,png,gif'}]},multi_selection:true});uploaders.init();uploaders.bind('FilesAdded',function(uploaders,files){var newnum=maxnum-parseInt($('#FileListsuc tr').length+$('#FileListing tr').length),flen=files.length,fhtml,vhtml='',ehtml='';if(flen>newnum){layer.alert("<strong>图片最多能上传"+maxnum+"个</strong>",{icon:2});uploaders.splice(newnum,10000)}for(var i=0;i<=flen;i++){if(i==flen){if(ehtml!=''){layer.alert("<strong>以下图片已传过了，不要重复上传</strong><br>"+ehtml,{icon:0})}if(uploaders.files.length>0){ $('#pluing').show();$(fhtml).appendTo('#FileListing');$('#pluing u').html(uploaders.files.length)}return false}if(i>=newnum){continue}fname=files[i].name;fid=files[i].id;var f5name=$.md5(files[i].size+files[i].lastModifiedDate+files[i].type);vhtml='<tr id="file-'+fid+'"><td>'+fname+'</td><td></td><td align="center"><a onclick=rdeling("'+fid+'")>取消</a></td></tr>';$("#FileListsuc :checkbox").each(function(){if($(this).val()==f5name){vhtml='';uploaders.removeFile(fid);ehtml+="【"+fname+"】<br>";return false}});fhtml=fhtml+vhtml}});uploaders.bind("BeforeUpload",function(uploaders,file){uploaders.setOption("multipart_params",{lastDate:file.lastModifiedDate,osize:file.size,number:'{$order.ddbh}',filebh:'{$order.ddbh}',type:'evaluation',menu:'buy',filetype:'files',maxnum:maxnum})});uploaders.bind("UploadProgress",function(uploaders,file){ $('#progress-in').width(uploaders.total.percent+"%");$("#file-"+file.id+" td:eq(2)").html("<b>"+file.percent+"%</b>")});uploaders.bind("FileUploaded",function(uploaders,file,info){ $('#progress-uploaded').html(uploaders.total.uploaded);var data=$.parseJSON(info.response);if(data.state!=0){ $fh=$('#progress ul');$fh.show();$('<p><span>'+file.name+'</span><br><b>'+data.state+' >> 继续执行…</b></p>').appendTo($fh);stop=3000}});uploaders.bind("UploadComplete",function(uploaders){setTimeout("Rs(Rsdata)",stop)});uploaders.bind("Error",function(uploaders,err){if(err.message=='HTTP Error.'){fid=err.file.id;$("#file-"+fid+" td:eq(1)").html("<font color=red>系统出错，代码"+err.code+"</font>");$("#file-"+fid+" td:eq(2)").html('<a onclick=rdeling("'+fid+'")>删除</a>');return false}layer.alert("<strong>"+err.message+"</strong>",{icon:5})});var star_tooltip={'quality':["差得离谱，与卖家描述的严重不符，非常不满","部分有差别，与卖家描述的不符，不满意","质量一般，没有卖家描述的那么好","质量不错，与卖家描述基本一致，还挺满意的","质量很好，与卖家描述的完全一致，非常满意"],'attitude':["卖家态度很差，还骂人，简直不把顾客当回事","卖家有点不耐烦，承诺的服务也兑现不了","卖家回复问题很慢，态度一般，谈不上沟通顺畅","卖家服务挺好的，沟通挺顺畅的，总体满意","卖家的服务太棒了，非常周到，完全超出期望值"],"efficiency":["再三提醒下，卖家超过1天才发货，耽误我时间","卖家发货有点慢的，催了几次才发货了","卖家发货速度一般，提醒后才发货的","卖家发货还算及时","卖家发货速度非常快"]};var levels=["很不满意","不满意","一般","满意","很满意"];$(".star a").mouseover(function(){ $i=$(this).html();$dtop=$(this).offset().top;$dleft=$(this).offset().left;$stop=$('.star').offset().top;$sleft=$('.star').offset().left;$star=$(this).parent();$star_cs=$star.attr("data");$this=$(this).parent().find('a');$(this).addClass("on").prevAll().addClass("on");$(this).nextAll().removeClass("on");$(".star_tisp").css({"top":($dtop+30)-$stop+"px","left":$dleft-$sleft-($(".star_tisp").width()/2)+"px"}).show();$(".star_tisp").html("<em class='"+($i>=3?"orange":"red")+"'><b>"+$i+"</b> 分 "+levels[$i-1]+"</em>"+star_tooltip[$star_cs][$i-1])}).mouseout(function(){ $this.removeClass("on");$(".star_tisp").hide();$data=$star.attr("data-star");if($data>=1)$this.each(function(i){if((i+1)<=$data)$(this).addClass("on")})}).click(function(){ $(this).parent().attr("data-star",$(this).html());$("input[name="+$(this).parent().attr('data')+"]").val($(this).html());$(this).addClass("on").prevAll().addClass("on");$star.next().html("<b class='"+($i>=3?"orange":"red")+"'>"+$i+" 分</b> （"+star_tooltip[$star_cs][$i-1]+"）")});function rdeling(id){uploaders.removeFile(id);$("#file-"+id).remove();if($('#FileListing tr').length<=0){ $('#pluing').hide()}else{ $('#pluing u').html(uploaders.files.length)}};
</script>
</body>
</html>